package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type GuildMemberApply struct {
	Id          int       `json:"id" gorm:"primaryKey;autoIncrement"` //int(11) NOT NULL AUTO_INCREMENT,
	Uid         int       `json:"uid"`                                //int(11) DEFAULT NULL,
	Guildid     int       `json:"guildid"`                            //int(11) DEFAULT NULL,
	Status      int       `json:"status"`                             //int(1) DEFAULT '0' COMMENT '0-申请中 1-已通过 2-被拒绝',
	CreateTime  time.Time `json:"create_time"`                        //datetime DEFAULT NULL,
	OperateTime time.Time `json:"operate_time"`                       //datetime DEFAULT NULL,
}

func (GuildMemberApply) TableName() string {
	return fmt.Sprintf("%sguild_member_apply", models.Prefix)
}
